function initialize() {
  var map = new BMapGL.Map('allmap');
	var point = new BMapGL.Point(116.34713, 40.079971)
  map.centerAndZoom(point,15);
	var marker= new BMapGL.Marker(point)
	map.addOverlay(marker)
}
function loadScript() {
  var script = document.createElement("script");
  script.src = "https://api.map.baidu.com/api?v=1.0&type=webgl&ak=X8MUFGVFTarSE9i70DY34DZSVXwkM4mx&callback=initialize";
  document.body.appendChild(script);
}
window.onload = loadScript;
